package img

//func WaterMark(src, mark image.Image) (image.Image, error) {
//	//把水印写到右下角，并向0坐标各偏移10个像素
//	srcBounds := src.Bounds()
//	offset := image.Pt(srcBounds.Dx()-mark.Bounds().Dx()-10, srcBounds.Dy()-mark.Bounds().Dy()-10)
//	newImg := image.NewNRGBA(srcBounds)
//	draw.Draw(newImg, srcBounds, src, image.ZP, draw.Src)
//	draw.Draw(newImg, mark.Bounds().Add(offset), mark, image.ZP, draw.Over)
//	return newImg, nil
//}
